<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<script type="text/javascript">

function calendar_save(){
	CQOA.formSubmit($('#calendarForm'),ctx+'/pof/Calendar!save.action',function(o){
		if(o.success){
			function_return();
		}
		$.messager.show({
			msg : o.msg
		});
	},{});
};

</script>
<div class="easyui-layout" fit="true" border="false">
            <div id="easyui-title" style="display:none">
               			 日程安排
            </div>
            <div region="center" border="false" style="padding:5px;">
                <s:form id="calendarForm" name="calendarForm" method="post">
                    <table style="width:95%;" class="dataTable">
                        <tr>
                            <td  colspan="6">
                                <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="calendar_save()">确认</a>
                                <a href="#" class="easyui-linkbutton" iconCls="icon-return" onclick="function_return()">返回</a>
								<s:if test="entity.sid!=null">
									<a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="function_delete()">删除</a>
								</s:if>
                            </td>
                        </tr>
                        <tr>
                            <td  style="width:120px">
                                <label for="title">
                                    ${star}题目${colon}
                                </label>
                            </td>
                            <td  colspan="5">
                                <s:textfield id="title" name="entity.title" cssClass="easyui-validatebox" type="text" validType="length[1,150]" notnull="true" style="width:300px;"/>
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <label>
                                    	开始时间${colon}
                                </label>
                            </td>
                            <td  colspan="5">
                                <s:textfield id="beginTime" name="entity.beginTime" cssClass="easyui-datetimebox" notnull="true" editable="false" />
								至
								<s:textfield id="endTime" name="entity.endTime" cssClass="easyui-datetimebox" notnull="true" editable="false"  />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="isAllDay">
                                  	  是否整天${colon}
                                </label>
                            </td>
                            <td width="100px">
                            	<input id="isAllDay" type="checkbox" value="1" name="entity.isAllDay" onclick="function_isAllDay(this)">
                            </td>
                            <td  width="20%;">
                                <label for="isSendSms">
                                  	 短信
                                </label>
                            </td>
                            <td width="20%;">
                                <input id="isSendSms" type="checkbox" value="1" name="entity.isSendSms" onclick="function_isSendSms(this)">
                            </td>
                            <td  width="120px">
                             	  短信提醒时间
                            </td>
                            <td width="20%;">
                                <s:textfield id="smsTime" name="entity.smsTime" cssClass="easyui-datetimebox"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="location">
                                  	 日程安排${colon}
                                </label>
                            </td>
                            <td  colspan="5">
                                <s:textfield id="location" name="entity.location" cssClass="easyui-validatebox" type="text" style="width:90%;" validType="length[1,500]" />
                            </td>
                        </tr>
                        <tr>
                            <td >
                                <label for="descriptions">
                                    	说明${colon}
                                </label>
                            </td>
                            <td  colspan="5">
                                <s:textarea id="descriptions" name="entity.descriptions" cssClass="easyui-validatebox" rows="5" style="width:95%;" validType="length[1,1000]" />
                            </td>
                        </tr>
                        
                        <s:hidden id="sid" name="entity.sid"></s:hidden>
                    </table>
                </s:form>
            </div>
 </div>

